const Mock = require('mockjs')

module.exports = Mock.mock({
  "banners|4-6": ["@image(375x200, @color, banner)"],
  "menus|10": [{
    "icon": "@image(50x50, @color, menu)",
    "title": "@ctitle(2)",
    "id": "@id"
  }],
  "list|100": [{
    "id": "@id",
    "title": "@ctitle",
    "desc": "@cword(10, 30)",
    "images|5-10": ["@image(120x80, @color, item)"],
    "price|10-1000": 1,
    "maxCount|5-10": 1, 
  }],
  "userList": [{
    "username": "zhangsan",
    "password": "zhangsan",
    "avator": "https://robohash.org/1231231231231?set=set5",
    "nickname": "张三同学",
    "id": "@id",
  },{
    "username": "lisi",
    "password": "lisi",
    "avator": "https://robohash.org/1231231231231123121?set=set4",
    "nickname": "李四小朋友",
    "id": "@id",
  }],
  "tabList|20": [{
    "title": "@ctitle(2)",
    "id": "@id",
    "children|10-20": [{
      "id": "@id",
      "title": "@ctitle",
      "desc": "@cword(10, 30)",
      "images|5-10": ["@image(120x80, @color, item)"],
      "price|10-1000": 1,
      "maxCount|5-10": 1, 
    }]
  }]
})
